﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Ad_LichSuGiaoDichUC.ascx.cs" Inherits="GUI.Admin.uc.Ad_LichSuGiaoDichUC" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!--Panel danh sách các lịch sử giao dịch -->
<style type="text/css">
    .style2
    {
        color: Blue;
        font-size: 25px;
        margin-left: 50px;
    }
    
    .style3
    {
        color: Red;
        font-weight: bold;
    }
    
    .style4
    {
        color: #FF0000;
    }
    
    .style8
    {
        color: #FF0000;
        margin-top: 100px;
        margin-left: 100px;
    }
    
    .tb_left
    {
        width: 15%;
    }
    
    .tb_center
    {
        width: 10%;
    }
    
    .tb_right
    {
        width: 75%;
    }
    .style11
    {
        width: 31%;
    }
    .style12
    {
        width: 23%;
    }
</style>
<script type="text/javascript" language="javascript">
    function changeCheckState() {
        try {
            var frm = document.forms[0];
            var i = 0;
            for (i = 0; i < frm.length; i++) {
                if (frm.elements[i].id.indexOf('CheckBoxItem') != -1) {
                    if (document.getElementById(frm.elements[i].id) != null) {
                        if (frm.elements[i].checked == false) {
                            frm.elements[i].checked = true;
                        } else {
                            frm.elements[i].checked = false;
                        }
                    }
                }
            }
        } catch (err) { }
    }
</script>
<asp:Panel ID="PanelDanhSachLichSuGiaoDich" runat="server">
    <table style="width: 100%; border: 1px solid #008000;">
        <tr>
            <td class="style11">
                <asp:ImageButton ID="ImageButtonXoa" runat="server" CommandName="Delete" ImageUrl="~/Admin/images/delete.png"
                    ToolTip="Xóa lịch sử giao dịch " OnClientClick="return confirm('Bạn có muốn xóa thật không?');"
                    OnClick="ImageButtonXoa_Click" />
                &nbsp; <span class="style2">Danh sách lịch sử giao dịch </span>
            </td>
            <td class="style12">
                &nbsp;
            </td>
            <td>
                &nbsp; <span class="style4">Tổng số lịch sử giao dịch : </span>&nbsp;
                <asp:Label ID="LabelTongSoLichSuGiaoDich" runat="server" CssClass="style3"></asp:Label>
            </td>
        </tr>
        <tr style="text-align: center;">
            <td class="style11">
                &nbsp;
            </td>
            <td class="style12">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="text-align:right;">
                &nbsp;
                <br />
                Bộ lọc:&nbsp;&nbsp;</td>
            <td class="style12">
                Từ ngày : &nbsp;
                <eo:DatePicker ID="DatePickerTuNgay" runat="server" ControlSkinID="None" DayCellHeight="16"
                    DayCellWidth="19" DisabledDates="" FirstMonth="2010-07-01" MaxValidDate="9998-12-31"
                    MinValidDate="2010-01-01" OtherMonthDayVisible="True" PickerFormat="dd/MM/yyyy hh:mm:ss tt"
                    SelectedDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" TitleRightArrowImageUrl="DefaultSubMenuIcon"
                    VisibleDate="2012-02-01" Width="250px">
                    <TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid" />
                    <SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                    <DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                    <PickerStyle CssText="font-family:Courier New; padding-left:5px; padding-right: 5px;" />
                    <CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma" />
                    <TitleArrowStyle CssText="cursor:hand" />
                    <DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid" />
                    <MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px" />
                    <TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;" />
                    <OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                    <DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid" />
                    <DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                </eo:DatePicker>
            </td>
            <td class="style12">
                Đến ngày : &nbsp;
                <eo:DatePicker ID="DatePickerDenNgay" runat="server" ControlSkinID="None" DayCellHeight="16"
                    DayCellWidth="19" DisabledDates="" FirstMonth="2010-07-01" MaxValidDate="9998-12-31"
                    MinValidDate="2010-01-01" OtherMonthDayVisible="True" PickerFormat="dd/MM/yyyy hh:mm:ss tt"
                    SelectedDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" TitleRightArrowImageUrl="DefaultSubMenuIcon"
                    VisibleDate="2012-02-01" Width="250px">
                    <TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid" />
                    <SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                    <DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                    <PickerStyle CssText="font-family:Courier New; padding-left:5px; padding-right: 5px;" />
                    <CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma" />
                    <TitleArrowStyle CssText="cursor:hand" />
                    <DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid" />
                    <MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px" />
                    <TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;" />
                    <OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                    <DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid" />
                    <DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                </eo:DatePicker>
            </td>
        </tr>
        <tr style="text-align: center;">
            <td class="style11">
                &nbsp;
            </td>
            <td style="text-align:left;">
                <asp:Button ID="ButtonThucHien" runat="server" CssClass="button_thuchien" OnClick="ButtonThucHien_Click"
                    Text="Thực hiện" ToolTip="Thực hiện" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="LabelThongBao" runat="server" CssClass="style8" Visible="False"></asp:Label>
                <asp:GridView ID="GridViewLichSuGiaoDich" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="4" ForeColor="#333333" OnPageIndexChanging="GridViewLichSuGiaoDich_PageIndexChanging"
                    OnRowDataBound="GridViewLichSuGiaoDich_RowDataBound" Width="100%">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:CheckBox ID="CheckBoxAll" runat="server" onclick="changeCheckState(this);" ToolTip="Check all" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBoxItem" runat="server" OnCheckedChanged="CheckBoxItem_CheckedChanged"
                                    ToolTip="Check" />
                            </ItemTemplate>
                            <HeaderStyle Width="20px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID">
                            <ItemTemplate>
                                <asp:Label ID="LabelMaLichSuGiaoDich" runat="server" Text='<%# Eval("MaLichSuGiaoDich") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="50px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mã người dùng">
                            <ItemTemplate>
                                <asp:Label ID="LabelMaNguoiDung" runat="server" Text='<%# Eval("MaNguoiDung") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="150px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tên người dùng">
                            <ItemTemplate>
                                <asp:Label ID="LabelTenNguoiDung" runat="server" Text='<%# Eval("TenNguoiDung") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="150px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Ngày giao dịch">
                            <ItemTemplate>
                                <asp:Label ID="LabelNgayGiaoDich" runat="server" Text='<%# Eval("NgayGiaoDich") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="250px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Nội dung">
                            <ItemTemplate>
                                <asp:Label ID="LabelNoiDungGiaoDich" runat="server" Text='<%# Eval("NoiDungGiaoDich") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Ghi chú">
                            <ItemTemplate>
                                <asp:Label ID="LabelGhiChu" runat="server" Text='<%# Eval("GhiChu") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Panel>
